#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QStatusBar* statusBar = this->statusBar();
    this->setStatusBar(statusBar);

    statusBar->showMessage("this is a statusBar");
    QPushButton* pushButton = new QPushButton("button");
    statusBar->addPermanentWidget(pushButton);
}

MainWindow::~MainWindow()
{
    delete ui;
}

